home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / utilit~1 / initbin.zoo / init-bin / etc / rc < prev    next >
Encoding:
Text File  |  1992-11-03  |  892 b   |  48 lines

  1. #!/bin/sh
  2. # This is run at multi-user startup.
  3. #
  4. # Edit it to suit your taste.
  5. #
  6. # Really, some of this stuff should be in rc.local which should be called
  7. # from this script.
  8. #
  9. # S.R.Usher 29/12/91
  10. #
  11. PATH=/bin:/usr/ucb:/usr/bin ; export PATH
  12.  
  13. /bin/date
  14. if [ -f /etc/single ] ; then
  15.     /bin/rm /etc/single
  16.     echo "Multiuser reboot in progress..."
  17. else
  18.     echo "Automatic reboot in progress..."
  19. fi
  20.  
  21. # Clear the /tmp directory.
  22.  
  23. /bin/rm /tmp/* > /dev/null 2>&1 ; echo "clearing /tmp"
  24.  
  25. echo -n "standard daemons:"
  26.  
  27. # Start up the update daemon. (This may be useful if there are any file systems
  28. # which may need sync()ing in the future. You never know, someone might write
  29. # one!)
  30.  
  31. if [ -f /usr/lib/update ] ; then
  32.     /usr/lib/update > /dev/null 2>&1 &
  33.     echo -n " update"
  34. fi
  35.  
  36. if [ -f /etc/cron ] ; then
  37.     /etc/cron > /dev/null 2>&1 &
  38.     echo -n " cron"
  39. fi
  40.  
  41. echo "."
  42.  
  43. /bin/sh /etc/rc.local
  44.  
  45. /bin/date
  46.  
  47. exit
  48.